Turning the Clustering layer visualization on for a point map combines multiple points into one symbol, with default class breaks, colors, and sizes. You can style the clusters by changing the default colors, sizes, and class breaks. The only symbol shape supported for clustering is a circle.
The default clusters are broken into three classes.
When you turn the Clustering layer visualization on in the Settings panel for a map, a dialog box opens that enables you to customize the number of classes and the colors and sizes for each class, as shown in the following image.
To customize the symbols, enter the following information in the Cluster Settings dialog box.
The class numbers are added to the list box on the left of the dialog box, as shown in the following image, where the number 3 was selected.
Note: The minimum value for each class must be less than its maximum value.
The following image shows sample customized properties for Class 2.
When you run the HTML page, you will see the customized clusters.
Create an HTML page with an Esri component. Add the following request, named customer_locations.fex, in the folder with the HTML page, then add it to the HTML page using the Requests & Data Sources panel.
TABLE FILE WF_RETAIL_LITE PRINT ID_CUSTOMER COGS_US QUANTITY_SOLD COMPUTE LONGITUDE/D12.2 =CUSTOMER_LONGITUDE; COMPUTE LATITUDE/D12.2 = CUSTOMER_LATITUDE; BY STATE_PROV_NAME BY ID_CUSTOMER NOPRINT WHERE COUNTRY_NAME EQ 'United States'; ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT XML END
In the Settings panel, select this request, select the Point of Interest Geographic Role, and select ID_CUSTOMER as the Unique Id field, as shown in the following image.
In the Layer Visualizations section of the Settings panel, click Clustering. Click the On radio button.
Click OK and run the HTML page. The clusters appear with the default properties, as shown in the following image.
In the Layer Visualizations section of the Settings panel, click Clustering.
In the Cluster Settings dialog box, turn clustering on and select three classes. Select the options shown in the following images for each class.
Class 1
Class 2
Class 3
Click OK and run the HTML page. The customized clusters are shown in the following image.
WebFOCUS | |
Feedback |